<?php
$lang = Yii::app()->session['_lang'] ? : 'en';
$airport = $hotel_content->info;
?>
<form method="post" action="payment.html" data-ajax="false" onSubmit="true">
    <section class="step_booking">
        <img src="<?= Yii::app()->theme->baseUrl ?>/images/step3_<?= $lang ?>.png">
        <article class="flight-info">
            <div data-role="collapsibleset" data-theme="a" class="title-bar">
                <div data-role="collapsible" data-collapsed="false">
                    <h3 class="title"><?= Yii::t('lang', 'flight_title'); ?></h3>
                    <div class="box-info">
                        <div class="box flight-box">
                            <label><?= Yii::t('lang', 'arrival_flight'); ?></label> 
                            <input class="text" type="text" name="arrival_flight" id="arrival_flight">
                        </div>
                        <div class="box">
                            <label><?= Yii::t('lang', 'date'); ?></label> 
                            <input class="datepicker" id="arrival_date" type="text" data-role="date" readonly="readonly">
                            <input type="hidden" name="arrival_date" id="arrival-date" value="">
                        </div>
                        <div class="box box-time">
                            <label><?= Yii::t('lang', 'time'); ?></label> 
                            <input class="text" type="text" name="arrival_time" id="arrival_time">
                        </div>
                    </div>
                    <i id="m_vehicle" style="display:none"><?= Yii::t('lang', 'm_vehicle'); ?></i>
                    <div class="box-info">
                        <div class="box airport-box">
                            <label><?= Yii::t('lang', 'vehicle_type'); ?></label> 
                            <select id="vehicle_type" class="select-box" name="vehicle">
                                <option value=""><?= Yii::t('lang', 'vehicle_type'); ?></option>
                                <?php
                                $array_airport = array();
                                if (isset($airport['airportTransferFee']['category'])) {
                                    foreach ($airport['airportTransferFee']['category'] as $key => $air) {
                                        if(isset($air['status'])){
                                            echo '<option value="' . $key . '">' . str_replace('_','-',$key). '</option>';
                                        }                                     
                                    }
                                }
                                ?>
                            </select>
                        </div>
                        <div class="box">
                            <label><?= Yii::t('lang', 'price'); ?></label> <label id="price"></label>
                            <input class="text" type="hidden" name="price" id="prices">
                        </div>
                    </div>

                </div>
            </div>
        </article>
        <!--end flight info-->
        <article class="flight-info">
            <div data-role="collapsibleset" data-theme="a" class="title-bar">
                <div data-role="collapsible">
                    <h3 class="title"><?= Yii::t('lang', 'request_title'); ?></h3>
                    <div class="box-info">
                        <div class="box-area">
                            <textarea name="request" class="text-are" placeholder="<?= Yii::t('lang', 'request_comment'); ?>"></textarea>
                        </div>                    
                    </div> 
                </div>
            </div>
        </article>
        <!--end request/comment-->
        <article class="flight-info">
            <div data-role="collapsibleset" data-theme="a" class="title-bar">
                <div data-role="collapsible" class="fill-info" data-collapsed="false">
                    <h3 class="title"><?= Yii::t('lang', 'fill_title'); ?></h3>
                    <i id="m_title"><?= Yii::t('lang', 'm_title'); ?></i>
                    <div class="box">
                        <label><?= Yii::t('lang', 'gender_title'); ?></label>
                        <select id="gender" class="select-box" name="gender">
                            <option value=""><?= Yii::t('lang', 'gender_title'); ?></option>
                            <option value="Mr">Mr</option>
                            <option value="Mrs">Mrs</option>
                            <option value="Miss">Miss</option>
                        </select>
                    </div>
                    <i id="m_fullname"><?= Yii::t('lang', 'm_fullname'); ?></i>
                    <div class="box">
                        <label><?= Yii::t('lang', 'name_title'); ?></label> <input class="text" type="text" name="name" id="fullname">
                    </div>
                    <i id="m_email"><?= Yii::t('lang', 'm_email'); ?></i>
                    <i id="m_email2"><?= Yii::t('lang', 'm_email2'); ?></i>
                    <div class="box">
                        <label><?= Yii::t('lang', 'email_title'); ?></label> <input class="text" type="text" name="email" id="email">
                    </div>
                    <i id="m_reemail"><?= Yii::t('lang', 'm_reemail'); ?></i>
                    <i id="m_reemail2"><?= Yii::t('lang', 'm_reemail2'); ?></i>
                    <div class="box re-email">
                        <label><?= Yii::t('lang', 'reemail_title'); ?></label> <input class="text" type="text" id="reemail">
                    </div>
                    <i id="m_country"><?= Yii::t('lang', 'm_country'); ?></i>
                    <div class="box country-box">
                        <label><?= Yii::t('lang', 'country_title'); ?></label> 
                        <select id="country" class="select-box" name="country_name">
                            <option value="">Select country</option><option value="PA7">Afghanistan</option><option value="PA12">Aland Islands</option><option value="PAL">Albania</option><option value="PDZ">Algeria</option><option value="PAD">Andorra</option><option value="PAO">Angola</option><option value="PA8">Anguilla</option><option value="PAG">Antigua and Barbuda</option><option value="PAR">Argentina</option><option value="PAM">Armenia</option><option value="PA11">Aruba</option><option value="PAU">Australia</option><option value="PAT">Austria</option><option value="PAZ">Azerbaijan</option><option value="PA2">Bahamas</option><option value="PBH">Bahrain</option><option value="PBD">Bangladesh</option><option value="PBB">Barbados</option><option value="PBY">Belarus</option><option value="PBE">Belgium</option><option value="PBZ">Belize</option><option value="PBJ">Benin</option><option value="PA13">Bermuda</option><option value="PA14">Bhutan</option><option value="PBO">Bolivia</option><option value="PBA">Bosnia And Hercegovina</option><option value="PBW">Botswana</option><option value="PA27">Bouvet Island</option><option value="PBR">Brazil</option><option value="PA32">British Indian Ocean Territory</option><option value="PA60">British Virgin Islands</option><option value="PBN">Brunei</option><option value="PBG">Bulgaria</option><option value="PBF">Burkina-Faso</option><option value="PBI">Burundi</option><option value="PKH">Cambodia</option><option value="PCM">Cameroon</option><option value="PCA">Canada</option><option value="PA17">Cape Verde</option><option value="PA36">Cayman Islands</option><option value="PCF">Central African Republic</option><option value="PTD">Chad</option><option value="PCL">Chile</option><option value="PCN">China</option><option value="PA18">Christmas Island</option><option value="PA15">Cocos - Keeling Islands</option><option value="PCO">Colombia</option><option value="PA35">Comoros</option><option value="PCG">Congo-Brazzaville</option><option value="PA16">Cook Islands</option><option value="PCR">Costa Rica</option><option value="PHR">Croatia</option><option value="PCU">Cuba</option><option value="PCY">Cyprus</option><option value="PCZ">Czech Republic</option><option value="PCD">Democratic Repub. of Congo</option><option value="PDK">Denmark</option><option value="PDJ">Djibouti</option><option value="PDM">Dominica</option><option value="PDO">Dominican Republic</option><option value="PEC">Ecuador</option><option value="PEG">Egypt</option><option value="PSV">El Salvador</option><option value="PGQ">Equatorial Guinea</option><option value="PER">Eritrea</option><option value="PEE">Estonia</option><option value="PET">Ethiopia</option><option value="PA20">Falkland Islands/Malvinas</option><option value="PA22">Faroe Islands</option><option value="PA1">Fiji Islands</option><option value="PFI">Finland</option><option value="PFR">France</option><option value="PGF">French Guiana</option><option value="PPF">French Polynesia</option><option value="PGA">Gabon</option><option value="PGM">Gambia</option><option value="PGE">Georgia</option><option value="PDE">Germany</option><option value="PGH">Ghana</option><option value="PGI">Gibraltar</option><option value="PGR">Greece</option><option value="PA28">Greenland</option><option value="PA23">Grenada</option><option value="PGP">Guadeloupe</option><option value="PA26">Guam</option><option value="PGT">Guatemala</option><option value="PA24">Guernsey</option><option value="PGN">Guinea</option><option value="PA29">Guinea Bissau</option><option value="PGY">Guyana</option><option value="PHT">Haiti</option><option value="PA30">Heard Island McDonald Islands</option><option value="PHN">Honduras</option><option value="PA69">Hong Kong</option><option value="PHU">Hungary</option><option value="PIS">Iceland</option><option value="PIN">India</option><option value="PID">Indonesia</option><option value="PIR">Iran</option><option value="PIQ">Iraq</option><option value="PIE">Ireland</option><option value="PA31">Isle of Man</option><option value="PIL">Israel</option><option value="PIT">Italy</option><option value="PCI">Ivory  Coast</option><option value="PJM">Jamaica</option><option value="PJP">Japan</option><option value="PA33">Jersey</option><option value="PJO">Jordan</option><option value="PKZ">Kazakhstan</option><option value="PKE">Kenya</option><option value="PA34">Kiribati</option><option value="PA71">Kosovo</option><option value="PKW">Kuwait</option><option value="PKG">Kyrgyzstan</option><option value="PLA">Lao people's democratic republic</option><option value="PLV">Latvia</option><option value="PLB">Lebanon</option><option value="PA40">Lesotho</option><option value="PA39">Liberia</option><option value="PLY">Libya</option><option value="PA38">Liechtenstein</option><option value="PLT">Lithuania</option><option value="PLU">Luxembourg</option><option value="PA70">Macau</option><option value="PMK">Macedonia</option><option value="PMG">Madagascar</option><option value="PMW">Malawi</option><option value="PMY">Malaysia</option><option value="PA3">Maldives</option><option value="PML">Mali</option><option value="PMT">Malta</option><option value="PA41">Marshall Island Republic</option><option value="PMQ">Martinique</option><option value="PMR">Mauritania</option><option value="PMU">Mauritius</option><option value="PYT">Mayotte</option><option value="PMX">Mexico</option><option value="PA21">Micronesia, Federated States Of</option><option value="PMD">Moldova</option><option value="PMC">Monaco</option><option value="PMN">Mongolia</option><option value="PA68">Montenegro</option><option value="PA43">Montserrat</option><option value="PMA">Morocco</option><option value="PMZ">Mozambique</option><option value="PMM">Myanmar</option><option value="PNA">Namibia</option><option value="PA44">Nauru</option><option value="PNP">Nepal</option><option value="PNL">Netherlands</option><option value="PA9">Netherlands Antilles</option><option value="PNC">New Caledonia</option><option value="PNZ">New Zealand</option><option value="PNI">Nicaragua</option><option value="PNE">Niger</option><option value="PNG">Nigeria</option><option value="PA45">Niue</option><option value="PA6">Norfolk Island</option><option value="PKP">North Korea</option><option value="PA42">Northern Mariana Islands</option><option value="PNO">Norway</option><option value="POM">Oman</option><option value="PPK">Pakistan</option><option value="PA48">Palau</option><option value="PA47">Palestinian Territory</option><option value="PPA">Panama</option><option value="PPG">Papua new guinea</option><option value="PPY">Paraguay</option><option value="PPE">Peru</option><option value="PPH">Philippines</option><option value="PA46">Pitcairn</option><option value="PPL">Poland</option><option value="PPT">Portugal</option><option value="PPR">Puerto Rico</option><option value="PQA">Qatar</option><option value="PRE">Reunion</option><option value="PRO">Romania</option><option value="PRU">Russia</option><option value="PRW">Rwanda</option><option value="PSF">Saint Barthelemy</option><option value="PA66">Saint Helena</option><option value="PKN">Saint Kitts and Nevis</option><option value="PA37">Saint Lucia</option><option value="PA65">Saint Martin</option><option value="PA10">Samoa American</option><option value="PA64">Samoa Western</option><option value="PSM">San Marino</option><option value="PA52">Sao Tome and Principe</option><option value="PSA">Saudi Arabia</option><option value="PSN">Senegal</option><option value="PA67">Serbia</option><option value="PA50">Seychelles Islands</option><option value="PSL">Sierra Leone</option><option value="PSG">Singapore</option><option value="PSK">Slovakia</option><option value="PSI">Slovenia</option><option value="PA49">Solomon Islands</option><option value="PSO">Somalia</option><option value="PZA">South Africa</option><option value="PA25">South Georgia South Sandwich Isl</option><option value="PKR">South Korea</option><option value="PES">Spain</option><option value="PLK">Sri lanka</option><option value="PPM">St Pierre and Miquelon</option><option value="PA59">St Vincent and The Grenadines</option><option value="PSD">Sudan</option><option value="PSR">Suriname</option><option value="PA51">Svalbard and Jan Mayen</option><option value="PA53">Swaziland</option><option value="PSE">Sweden</option><option value="PCH">Switzerland</option><option value="PSY">Syria</option><option value="PTW">Taiwan</option><option value="PTJ">Tajikistan</option><option value="PTZ">Tanzania</option><option value="PTH">Thailand</option><option value="PA55">Timor Leste</option><option value="PTG">Togo</option><option value="PA54">Tokelau</option><option value="PA56">Tonga</option><option value="PTT">Trinidad and Tobago</option><option value="PTN">Tunisia</option><option value="PTR">Turkey</option><option value="PTM">Turkmenistan</option><option value="PA4">Turks and Caicos</option><option value="PA57">Tuvalu</option><option value="PUG">Uganda</option><option value="PUA">Ukraine</option><option value="PAE">United Arab Emirates</option><option value="PGB">United Kingdom</option><option value="PUS">United States</option><option value="PA58">United States Minor Outlying Isl</option><option value="PUY">Uruguay</option><option value="PUZ">Uzbekistan</option><option value="PA62">Vanuatu</option><option value="PVA">Vatican</option><option value="PVE">Venezuela</option><option value="PVN">Vietnam</option><option value="PA61">Virgin Islands US</option><option value="PA63">Wallis and Futuna Islands</option><option value="PA19">Western Sahara</option><option value="PYE">Yemen</option><option value="PZM">Zambia</option><option value="PZW">Zimbabwe</option>
                        </select>                        
                    </div>
                    <i id="m_zip"><?= Yii::t('lang', 'm_zip'); ?></i>
                    <i id="m_phone"><?= Yii::t('lang', 'm_phone'); ?></i>
                    <i id="m_phone2"><?= Yii::t('lang', 'm_phone2'); ?></i>
                    <div class="phone-box">
                        <div class="box zip-box">
                            <input class="text" type="text" name="zip_code" id="zip_code">
                        </div>
                        <div class="box mobile-box">                    
                            <label><?= Yii::t('lang', 'phone_title'); ?></label> <input class="text" type="text" name="phone" id="phone_number">
                        </div>
                    </div>
                </div>
            </div>
        </article>
        <!--end fill info-->
        <article class="flight-info">
            <div data-role="collapsibleset" data-theme="a">
                <div data-role="collapsible" class="payment-method" data-collapsed="false">
                    <h3 class="title"><?= Yii::t('lang', 'payment_title'); ?></h3>
                    <i id="m_credit"><?= Yii::t('lang', 'm_credit'); ?></i>
                    <div class="box">
                        <label><?= Yii::t('lang', 'card_title'); ?></label>
                        <select id="creditcard" name="card" class="select-box">
                            <option value="">Card type</option>
                            <option value="visa">VISA</option>
                            <option value="mastercard">Master Card</option>
                            <option value="amex">American Express</option>
                            <option value="jcb">JCB</option>
                        </select>
                    </div>
                    <i id="m_card_number"><?= Yii::t('lang', 'm_credit_number'); ?></i>
                    <i id="m_card_number2"><?= Yii::t('lang', 'm_credit_number2'); ?></i>
                    <div class="box card_number-box">
                        <label><?= Yii::t('lang', 'card_number'); ?></label> 
                        <input class="text" type="text" name="card_number" id="card_number">
                    </div>
                    <i id="m_holder"><?= Yii::t('lang', 'm_holder'); ?></i>
                    <div class="box">
                        <label><?= Yii::t('lang', 'card_holder'); ?></label> <input class="text" type="text" name="card_holder" id="card_holder"> 
                    </div>
                    <i id="m_expire"><?= Yii::t('lang', 'm_expire'); ?></i>
                    <i id="m_expire2"><?= Yii::t('lang', 'm_expire2'); ?></i>
                    <div class="box expire">
                        <label><?= Yii::t('lang', 'expire_title'); ?></label> 
                        <input class="datepicker" id="expire_date" type="text" data-role="date" readonly="readonly">
                        <input type="hidden" name="expire_date" id="expire-date" value="">
                    </div>
                    <i id="m_cvv"><?= Yii::t('lang', 'm_cvv'); ?></i>
                    <div class="box cvv-box">
                        <label><?= Yii::t('lang', 'cvv_title'); ?></label> 
                        <input class="text" type="text" name="cvv_number" id="cvv_number">
                    </div>
                </div>
            </div>
        </article>
        <article class="step_booking form-search">
            <div class="box btn">
                <input type="submit" value="<?= Yii::t('lang', 'btn_continue'); ?>" name="continue_payment" id="continue" data-role="false">
            </div>
        </article>
        <!--end payment method-->
    </section>
</form>
<?php
if (isset(Yii::app()->session['_bookedRoom'])) {
    $book = Yii::app()->session['_bookedRoom'];
    echo '<script type="text/javascript">';
    echo 'var checkin="' . $book['fromDate'] . '";';
    echo '</script>';
}